package WizardInstall;
/*
SWT/JFace in Action
GUI Design with Eclipse 3.0
Matthew Scarpino, Stephen Holder, Stanford Ng, and Laurent Mihalkovic

ISBN: 1932394273

Publisher: Manning
 */


import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;


/**
 * Summary page
 * @author Guy & Liel
 *
 */
class SummaryPage extends WizardPage {
	public static final String PAGE_NAME = "Summary";

	private Label textLabel;
	/**
	 * constructor summry page
	 */
	public SummaryPage() {
		super(PAGE_NAME, "Summary Page", null);
	}
	/**
	 * Create the controls(buttons,Labels,text)
	 */
	public void createControl(Composite parent) {
		Composite topLevel = new Composite(parent, SWT.NONE);
		topLevel.setLayout(new FillLayout());

		textLabel = new Label(topLevel, SWT.CENTER);
		textLabel.setText("");

		setControl(topLevel);
		setPageComplete(true);
	}
	/**
	 * update text error
	 * @param newText
	 */
	public void updateText(String newText) {
		textLabel.setText(newText);
	}
}